package com.skeeey.aim.model;

import java.io.Serializable;

public class AutoRecord implements Serializable {
	private static final long serialVersionUID = 1L;
	//UUID
	private String id;
	// create time
	private long createTime;
	// create date (2012-12-12)
	private String timeStamp;
	//dealer code
	private String dealerCode;
	//0-客户代码
	private String customerCode;
	//1-客户名称
	private String customerName;
	//2-原始提单号
	private String originalOrderNumber;
	//3-开单日期
	private String orderStartDate;
	//4-入库日期
	private String inStorageDate;
	//5-出库日期
	private String outStorageDate;
	//6-VIN码
	private String VINCode;
	//7-发动机号
	private String enginCode;
	//8-车辆代码
	private String autoCode;
	//9-车辆名称
	private String autoName;
	//10-颜色代码
	private String colorNumber;
	//11-颜色名称
	private String colorName;
	//12-车型年
	private String autoAge;
	//13-版本号
	private String version;
	//14-内饰
	private String innerOrnament;
	//15-内饰名
	private String innerOrnamentName;
	//16-选装包
	private String optionalPackageName;
	//17-状态名称
	private int status;
	//18-属性名称
	private String attributeName;
	//19-自制件
	private String flag;
	//20-存放地代码
	private String storageLocationCode;
	//21-存放地点
	private String storageLocation;
	//21-修改
	private String modified;
	//23-零售/Saving订单
	private String retailOrder;
	//24-零售时间
	private String retailTime;
	//25-零售单价
	private String retailPrice;
	//26-转卖客户
	private String reselled;
	//27-是否装配
	private String isAssembled;
	//实际库龄
	private int actualAge;
	//车型大类
	private String autoKind;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public String getDealerCode() {
		return dealerCode;
	}
	public void setDealerCode(String dealerCode) {
		this.dealerCode = dealerCode;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getOriginalOrderNumber() {
		return originalOrderNumber;
	}
	public void setOriginalOrderNumber(String originalOrderNumber) {
		this.originalOrderNumber = originalOrderNumber;
	}
	public String getOrderStartDate() {
		return orderStartDate;
	}
	public void setOrderStartDate(String orderStartDate) {
		this.orderStartDate = orderStartDate;
	}
	public String getInStorageDate() {
		return inStorageDate;
	}
	public void setInStorageDate(String inStorageDate) {
		this.inStorageDate = inStorageDate;
	}
	public String getOutStorageDate() {
		return outStorageDate;
	}
	public void setOutStorageDate(String outStorageDate) {
		this.outStorageDate = outStorageDate;
	}
	public String getVINCode() {
		return VINCode;
	}
	public void setVINCode(String vINCode) {
		VINCode = vINCode;
	}
	public String getEnginCode() {
		return enginCode;
	}
	public void setEnginCode(String enginCode) {
		this.enginCode = enginCode;
	}
	public String getAutoCode() {
		return autoCode;
	}
	public void setAutoCode(String autoCode) {
		this.autoCode = autoCode;
	}
	public String getAutoName() {
		return autoName;
	}
	public void setAutoName(String autoName) {
		this.autoName = autoName;
	}
	public String getColorNumber() {
		return colorNumber;
	}
	public void setColorNumber(String colorNumber) {
		this.colorNumber = colorNumber;
	}
	public String getColorName() {
		return colorName;
	}
	public void setColorName(String colorName) {
		this.colorName = colorName;
	}
	public String getAutoAge() {
		return autoAge;
	}
	public void setAutoAge(String autoAge) {
		this.autoAge = autoAge;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getInnerOrnament() {
		return innerOrnament;
	}
	public void setInnerOrnament(String innerOrnament) {
		this.innerOrnament = innerOrnament;
	}
	public String getOptionalPackageName() {
		return optionalPackageName;
	}
	public void setOptionalPackageName(String optionalPackageName) {
		this.optionalPackageName = optionalPackageName;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getAttributeName() {
		return attributeName;
	}
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getStorageLocationCode() {
		return storageLocationCode;
	}
	public void setStorageLocationCode(String storageLocationCode) {
		this.storageLocationCode = storageLocationCode;
	}
	public String getStorageLocation() {
		return storageLocation;
	}
	public void setStorageLocation(String storageLocation) {
		this.storageLocation = storageLocation;
	}
	public String getInnerOrnamentName() {
		return innerOrnamentName;
	}
	public void setInnerOrnamentName(String innerOrnamentName) {
		this.innerOrnamentName = innerOrnamentName;
	}
	public String getTimeStamp() {
		return timeStamp;
	}
	public void setTimeStamp(String timeStamp) {
		this.timeStamp = timeStamp;
	}
	public String getRetailOrder() {
		return retailOrder;
	}
	public void setRetailOrder(String retailOrder) {
		this.retailOrder = retailOrder;
	}
	public String getRetailTime() {
		return retailTime;
	}
	public void setRetailTime(String retailTime) {
		this.retailTime = retailTime;
	}
	public String getRetailPrice() {
		return retailPrice;
	}
	public void setRetailPrice(String retailPrice) {
		this.retailPrice = retailPrice;
	}
	public String getReselled() {
		return reselled;
	}
	public void setReselled(String reselled) {
		this.reselled = reselled;
	}
	public String getIsAssembled() {
		return isAssembled;
	}
	
	public void setIsAssembled(String isAssembled) {
		this.isAssembled = isAssembled;
	}
	public String getModified() {
		return modified;
	}
	public void setModified(String modified) {
		this.modified = modified;
	}
	
	public boolean update(AutoRecord newRecorde) {
		if (this == newRecorde)
			return false;
		if (newRecorde == null)
			return false;
		if (VINCode == null) {
			if (newRecorde.VINCode != null) {
				VINCode = newRecorde.VINCode;
				return true;
			}
		} else if (!VINCode.equals(newRecorde.VINCode)) {
			VINCode = newRecorde.VINCode;
			return true;
		}
		if (attributeName == null) {
			if (newRecorde.attributeName != null) {
				attributeName = newRecorde.attributeName;
				return true;
			}
		} else if (!attributeName.equals(newRecorde.attributeName)) {
			attributeName = newRecorde.attributeName;
			return true;
		}
		if (autoAge == null) {
			if (newRecorde.autoAge != null) {
				autoAge = newRecorde.autoAge;
				return true;
			}
		} else if (!autoAge.equals(newRecorde.autoAge)) {
			autoAge = newRecorde.autoAge;
			return true;
		}
		if (autoCode == null) {
			if (newRecorde.autoCode != null) {
				autoCode = newRecorde.autoCode;
				return true;
			}
		} else if (!autoCode.equals(newRecorde.autoCode)) {
			autoCode = newRecorde.autoCode;
			return true;
		}
		if (autoName == null) {
			if (newRecorde.autoName != null) {
				autoName = newRecorde.autoName;
				return true;
			}
		} else if (!autoName.equals(newRecorde.autoName)) {
			autoName = newRecorde.autoName;
			return true;
		}
		if (colorName == null) {
			if (newRecorde.colorName != null) {
				colorName = newRecorde.colorName;
				return true;
			}
		} else if (!colorName.equals(newRecorde.colorName)) {
			colorName = newRecorde.colorName;
			return true;
		}
		if (colorNumber == null) {
			if (newRecorde.colorNumber != null) {
				colorNumber = newRecorde.colorNumber;
				return true;
			}
		} else if (!colorNumber.equals(newRecorde.colorNumber)) {
			colorNumber = newRecorde.colorNumber;
			return true;
		}
		if (customerCode == null) {
			if (newRecorde.customerCode != null) {
				customerCode = newRecorde.customerCode;
				return true;
			}
		} else if (!customerCode.equals(newRecorde.customerCode)) {
			customerCode = newRecorde.customerCode;
			return true;
		}
		if (customerName == null) {
			if (newRecorde.customerName != null) {
				customerName = newRecorde.customerName;
				return true;
			}
		} else if (!customerName.equals(newRecorde.customerName)) {
			customerName = newRecorde.customerName;
			return true;
		}
		if (dealerCode == null) {
			if (newRecorde.dealerCode != null) {
				dealerCode = newRecorde.dealerCode;
				return true;
			}
		} else if (!dealerCode.equals(newRecorde.dealerCode)) {
			dealerCode = newRecorde.dealerCode;
			return true;
		}
		if (enginCode == null) {
			if (newRecorde.enginCode != null) {
				enginCode = newRecorde.enginCode;
				return true;
			}
		} else if (!enginCode.equals(newRecorde.enginCode)) {
			enginCode = newRecorde.enginCode;
			return true;
		}
		if (flag == null) {
			if (newRecorde.flag != null) {
				flag = newRecorde.flag;
				return true;
			}
		} else if (!flag.equals(newRecorde.flag)) {
			flag = newRecorde.flag;
			return true;
		}
		if (inStorageDate == null) {
			if (newRecorde.inStorageDate != null) {
				inStorageDate = newRecorde.inStorageDate;
				return true;
			}
		} else if (!inStorageDate.equals(newRecorde.inStorageDate)) {
			inStorageDate = newRecorde.inStorageDate;
			return true;
		}
		if (innerOrnament == null) {
			if (newRecorde.innerOrnament != null) {
				innerOrnament = newRecorde.innerOrnament;
				return true;
			}
		} else if (!innerOrnament.equals(newRecorde.innerOrnament)) {
			innerOrnament = newRecorde.innerOrnament;
			return true;
		}
		if (innerOrnamentName == null) {
			if (newRecorde.innerOrnamentName != null) {
				innerOrnamentName = newRecorde.innerOrnamentName;
				return true;
			}
		} else if (!innerOrnamentName.equals(newRecorde.innerOrnamentName)) {
			innerOrnamentName = newRecorde.innerOrnamentName;
			return true;
		}
		if (isAssembled == null) {
			if (newRecorde.isAssembled != null) {
				isAssembled = newRecorde.isAssembled;
				return true;
			}
		} else if (!isAssembled.equals(newRecorde.isAssembled)) {
			isAssembled = newRecorde.isAssembled;
			return true;
		}
		if (modified == null) {
			if (newRecorde.modified != null) {
				modified = newRecorde.modified;
				return true;
			}
		} else if (!modified.equals(newRecorde.modified)) {
			modified = newRecorde.modified;
			return true;
		}
		if (optionalPackageName == null) {
			if (newRecorde.optionalPackageName != null) {
				optionalPackageName = newRecorde.optionalPackageName; 
				return true;
			}
		} else if (!optionalPackageName.equals(newRecorde.optionalPackageName)) {
			optionalPackageName = newRecorde.optionalPackageName;
			return true;
		}
		if (orderStartDate == null) {
			if (newRecorde.orderStartDate != null) {
				orderStartDate = newRecorde.orderStartDate;
				return true;
			}
		} else if (!orderStartDate.equals(newRecorde.orderStartDate)) {
			orderStartDate = newRecorde.orderStartDate;
			return true;
		}
		if (originalOrderNumber == null) {
			if (newRecorde.originalOrderNumber != null) {
				originalOrderNumber = newRecorde.originalOrderNumber; 
				return true;
			}
		} else if (!originalOrderNumber.equals(newRecorde.originalOrderNumber)) {
			originalOrderNumber = newRecorde.originalOrderNumber;
			return true;
		}
		if (outStorageDate == null) {
			if (newRecorde.outStorageDate != null) {
				outStorageDate = newRecorde.outStorageDate; 
				return true;
			}
		} else if (!outStorageDate.equals(newRecorde.outStorageDate)) {
			outStorageDate = newRecorde.outStorageDate;
			return true;
		}
		if (reselled == null) {
			if (newRecorde.reselled != null) {
				reselled = newRecorde.reselled;
				return true;
			}
		} else if (!reselled.equals(newRecorde.reselled)) {
			reselled = newRecorde.reselled;
			return true;
		}
		if (retailOrder == null) {
			if (newRecorde.retailOrder != null) {
				retailOrder = newRecorde.retailOrder; 
				return true;
			}
		} else if (!retailOrder.equals(newRecorde.retailOrder)) {
			retailOrder = newRecorde.retailOrder;
			return true;
		}
		if (retailPrice == null) {
			if (newRecorde.retailPrice != null) {
				retailPrice = newRecorde.retailPrice; 
				return true;
			}
		} else if (!retailPrice.equals(newRecorde.retailPrice)) {
			retailPrice = newRecorde.retailPrice;
			return true;
		}
		if (retailTime == null) {
			if (newRecorde.retailTime != null) {
				retailTime = newRecorde.retailTime; 
				return true;
			}
		} else if (!retailTime.equals(newRecorde.retailTime)) {
			retailTime = newRecorde.retailTime;
			return true;
		}
		if (status != newRecorde.status) {
			status = newRecorde.status;
			return true;
		}
		if (storageLocation == null) {
			if (newRecorde.storageLocation != null) {
				storageLocation = newRecorde.storageLocation; 
				return true;
			}
		} else if (!storageLocation.equals(newRecorde.storageLocation)) {
			storageLocation = newRecorde.storageLocation;
			return true;
		}
		if (storageLocationCode == null) {
			if (newRecorde.storageLocationCode != null) {
				storageLocationCode = newRecorde.storageLocationCode;
				return true;
			}
		} else if (!storageLocationCode.equals(newRecorde.storageLocationCode)) {
			storageLocationCode = newRecorde.storageLocationCode;
			return true;
		}
		if (version == null) {
			if (newRecorde.version != null) {
				version = newRecorde.version;
				return true;
			}
		} else if (!version.equals(newRecorde.version)) {
			version = newRecorde.version;
			return true;
		}
		return false;
	}
	
	public int getActualAge() {
		return actualAge;
	}
	public void setActualAge(int actualAge) {
		this.actualAge = actualAge;
	}
	public String getAutoKind() {
		return autoKind;
	}
	public void setAutoKind(String autoKind) {
		this.autoKind = autoKind;
	}
}
